//
//  SearchOrderInputViewController.h
//  DPGJ
//
//  Created by ZhuoLaiQiang@Gmail.com on 11-11-28.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class TempView;

typedef enum
{
    LFInputViewLayoutForPickDate = 0,
    LFInputViewLayoutForPickText=1,
    LFInputViewLayoutForOrderStatus = 2
    
} LFInputViewLayout;

@protocol LFInputViewLayoutDelegate <NSObject>

- (void)layout:(id)object row:(NSInteger)row_;

@end


@interface SearchOrderInputViewController : UIViewController<UIPickerViewDataSource, UIPickerViewDelegate>
{
    TempView                *_tempView;
    LFInputViewLayout        _layoutSign;
    NSInteger                _row;
    NSArray                 *_pickDataSource;
}

@property (nonatomic, assign) id     <LFInputViewLayoutDelegate>             delegate;
@property (retain, nonatomic) IBOutlet UIDatePicker                         *datePick;
@property (retain, nonatomic) IBOutlet UIPickerView                         *textPick;

- (id)initWithDelegate:(id<LFInputViewLayoutDelegate>)delegate_ layout:(LFInputViewLayout)layout_ row:(NSInteger)row_;

- (void)cancel;
- (IBAction)save;
void setStartDate(NSDate *date_);

@end
